﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

@using Resources;
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.personaJS)" ></script> 
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.autocompleteJS)" ></script> 
<script type="text/javascript">
    $(function () {
        calendarFechaFuturo('fechaNac', '1');
        setAutoAyudaEmpresa("#nIdePersonaSocio", "#nIdeCodPaisDocSocio", "#nIdeTipoDocumSocio", "#nIdeNumDocumSocio", "#vNombresSocio", "/AutoAyuda/ListaPersonaAuto", "1");
        setAutoAyudaEmpresa("#nIdePersonaSocio", "#nIdeCodPaisDocSocio", "#nIdeTipoDocumSocio", "#vNombresSocio", "#nIdeNumDocumSocio", "/AutoAyuda/ListaPersonaAuto", "2");
    });
</script>

<fieldset style="width: 98%;" class="fieldsetStyle1">
    <legend class="tituloBlue9">Registrar Datos SocioEconómico y Social</legend>
    <table border="0" style="width: 100%;" cellpadding="0" cellspacing="0" xclass="tablaDetalle1">
        <tbody>            
            <tr>
                <td>
                    <table border="1" cellpadding="0" cellspacing="0" width="100%" class="tablaDetalle1">
                    <tbody class="tituloCelesteN8">
                        <tr align="center">
                            <td ># miembros de su familia<span class="asterisco">(*)</span></td>
                            <td>es jefe de familia?<span class="asterisco">(*)</span></td>
                            <td># de Dependientes<span class="asterisco">(*)</span></td>
                            <td>Profesión u Oficio<span class="asterisco">(*)</span></td>
                            <td>Tipo de Vivienda<span class="asterisco">(*)</span></td>
                            <td>Valor Comercial Aprox. (S/.)<span class="asterisco">(*)</span></td>
                            <td rowspan="2"><img src="@Url.Content("~/images/check.jpg")" class="lupita2" alt="AGREGAR"  onclick="javascript:registraInfoSocioEconomica('#divDatosSocio');"/></td>
                        </tr>
                        <tr align="center">                                      
                            <td><input type="text"   id="nNummiembrosFam" name="nNummiembrosFam"  style="width:20px;" maxlength="1" /></td>                            
                            <td>
                                <select id="nJefeFamilia" name="nJefeFamilia">
                                    <option value="">--Selecione--</option>
                                    <option value="1">SI</option>
                                    <option value="0">NO</option>
                                </select>
                            </td>
                            <td><input type="text"   id="nNumDependientes" name="nNumDependientes"  style="width:20px;"  maxlength="2"/></td>
                            <td>@Html.DropDownList("nIdeProfesion", (IEnumerable<SelectListItem>)ViewBag.Profesiones,"--Seleccione--", new { @class = "select8"})</td>
                            <td>@Html.DropDownList("nIdeTipoVivienda", (IEnumerable<SelectListItem>)ViewBag.TipoVivienda,"--Seleccione--", new { @class = "select8"})</td>                            
                            <td><input type="text"   id="nValorComercial" name="nNummiembrosFam"  style="width:100px;" /></td>
                         </tr>
                    </tbody>
                    </table>
                </td>
            </tr>
            <tr><td><div id="divDatosSocio" class="divOver1">@RenderPage("ROSocioEconomica.cshtml")</div></td></tr>
            <tr>
                <td>
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" >
                        <tr>
                            <td style="height:20px;"><strong><em><b>REFERENCIAS FAMILIARES</b></em></strong></td>                            
                        </tr>
                    </table>
                </td>                
            </tr>
            <tr>
                <td>

                    <table border="1" cellpadding="0" cellspacing="0" width="90%" class="tablaDetalle1">
                        <tbody class="tituloCelesteN8">
                            <tr>
                                <td>País Emisor<span class="asterisco">(*)</span></td>
                                <td>Tipo documento<span class="asterisco">(*)</span></td>
                                <td>Número documento<span class="asterisco">(*)</span></td>
                                <td>Nombres de la persona de referencia<span class="asterisco">(*)</span></td>
                                <td>
                                    <img src="@Url.Content("~/images/newPerson.jpg")" class="lupita2"  onclick="javascript:addNuevaPersona(this);" /></td>
                                <td id="tdImagenSocio" align="right" rowspan="4">
                                    <img src="@Url.Content("~/images/check.jpg")" class="lupita2" alt="AGREGAR"  id="imgAgregar" onclick="javascript:registrarRefFamiliarSocio('#divDatosRefFamiliarSocio');"/>
                                </td>
                            </tr>
                            <tr>

                                <td>
                                    @Html.DropDownList("nIdeCodPaisDocSocio", (IEnumerable<SelectListItem>)ViewBag.PaisEmisor, "--Seleccione--", new { @class = "select8" })
                                </td>
                                <td>
                                    @Html.DropDownList("nIdeTipoDocumSocio", (IEnumerable<SelectListItem>)ViewBag.TipoDocIdent, "--Seleccione--", new { @class = "select8" })
                                </td>
                                <td>
                                    @Html.TextBox("nIdeNumDocumSocio", null, new { style = "width:100px;", maxlength = 120 })
                                </td>
                                <td>
                                    @Html.TextBox("vNombresSocio", null, new { style = "width:320px;", maxlength = 120 })
                                </td>
                                <td>&nbsp;
                                    <input type="hidden" id="nIdePersonaSocio" /></td>
                            </tr>
                            <tr align="left">

                                <td>Parentesco<span class="asterisco">(*)</span></td>
                                <td>Trabaja<span class="asterisco">(*)</span></td>
                                <td>Vive con Ud?<span class="asterisco">(*)</span></td>
                                <td>Salud / Diagnóstico</td>
                                <td>Remuneración</td>

                            </tr>
                            <tr align="left">
                                <td>@Html.DropDownList("nIdeParentesco", (IEnumerable<SelectListItem>)ViewBag.ParentescoFamiliar, "--Seleccione--", new { @class = "select8" })</td>
                                <td>
                                    <select id="nIdeTrabaja" name="nIdeTrabaja">
                                        <option value="">--Selecione--</option>
                                        <option value="1">SI</option>
                                        <option value="0">NO</option>
                                    </select>
                                </td>
                                <td>
                                    <select id="nIdeViveContigo" name="nIdeViveContigo">
                                        <option value="">--Selecione--</option>
                                        <option value="1">SI</option>
                                        <option value="0">NO</option>
                                    </select>
                                </td>
                                <td>@Html.DropDownList("nIdeCie10", (IEnumerable<SelectListItem>)ViewBag.Cie10, "--Seleccione--", new { @class = "select8" })</td>
                                <td>
                                    <input type="text" id="nRemuneracion" name="nRemuneracion" style="width: 50px;" /></td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr><td><div id="divDatosRefFamiliarSocio" class="divOver1">@RenderPage("ROSocioEconomicaRefFam.cshtml")</div></td></tr>           
        </tbody>
    </table>
</fieldset>
